package com.syq.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.syq.mapper.DtsUserAccountMapper;
import com.syq.pojo.DtsUserAccount;
import com.syq.service.DtsUserAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @ClassName: DtsUserAccountServiceImpl
 * @Description: TODO
 * @Create by: syq
 * @Date: 2022/7/25 21:09
 */

@Service
@Transactional
public class DtsUserAccountServiceImpl implements DtsUserAccountService {
    @Autowired
    private DtsUserAccountMapper dtsUserAccountMapper;
    @Override
    public DtsUserAccount findById(Integer id) {
        return dtsUserAccountMapper.selectOne(new QueryWrapper<DtsUserAccount>().eq("user_id",id));
    }
}
